package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.demo.entity.BookFavorites;
import com.example.demo.entity.responseJson.BookshelfBInformationRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author : 洪俊新
 * @date : 2021/3/10 15:21
 * @description:
 */
@Mapper
@Component
public interface ABookfavoriteBookMapper {
    List<BookshelfBInformationRes> querybookshelefBook(@Param(Constants.WRAPPER) Wrapper<BookFavorites> ew);
    List<BookshelfBInformationRes> fuzzyquerybookshelefBook(@Param(Constants.WRAPPER) Wrapper<BookFavorites> ew);
    int countbookshelefBook(@Param(Constants.WRAPPER) Wrapper<BookFavorites> ew);
    int isFavoriteBook(@Param(Constants.WRAPPER) Wrapper<BookFavorites> ew);
    int queryFavoriteCount(@Param(Constants.WRAPPER) Wrapper<BookFavorites> ew);
}
